//
//  ShopingViewController.m
//  壳牌喜力促销积分商城
//
//  Created by TUSM on 15/3/10.
//  Copyright (c) 2015年 shell. All rights reserved.
//

#import "ShopingViewController.h"
#import "DuiHuanViewController.h"
#import "GWTableViewController.h"
@interface ShopingViewController ()


@property (weak, nonatomic) IBOutlet UILabel *name;
@property (weak, nonatomic) IBOutlet UIScrollView *scoreView;



@property (weak, nonatomic) IBOutlet UILabel *scores;
@property (weak, nonatomic) IBOutlet UITextView *intro;

- (IBAction)GWBtn:(UIButton *)sender;
- (IBAction)DuiHuanClick;

@end

@implementation ShopingViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.title = @"商品详情";
    self.tabBarController.tabBar.hidden = YES;
    
//    self.view.backgroundColor = [UIColor blueColor];
//    UIView *imageV = [[UIView alloc] init];
//    imageV.frame = CGRectMake(100, 100, 300, 400);
//    imageV.backgroundColor = [UIColor orangeColor];
//    [self.view addSubview:imageV];
    self.scoreView.backgroundColor = [UIColor orangeColor];
    

    CGRect temp  = self.scoreView.bounds;
    temp.size.width = [UIScreen mainScreen].bounds.size.width;
    UIImageView *imageView = [[UIImageView alloc] initWithFrame:temp];
    imageView.contentMode = UIViewContentModeScaleToFill;
    imageView.image = [UIImage imageNamed:@"9b437cdfb3e3b542b5917ce2e9a74890.jpg"];
    [self.scoreView addSubview:imageView];
}



- (IBAction)GWBtn:(UIButton *)sender {
    
    //1.跳转到购物车
    DuiHuanViewController *GouWuVc = [[DuiHuanViewController alloc] init];

     GouWuVc.title = @"购物车";
    [self.navigationController pushViewController: GouWuVc animated:YES];
    
    
    
    //2.把商品数据加入到购物车
    
    
    //3.刷新购物车数据
    
    
}

- (IBAction)DuiHuanClick {
    DuiHuanViewController *duiHuanVc = [[DuiHuanViewController alloc] init];
    duiHuanVc.title = @"确认订单";
    [self.navigationController pushViewController:duiHuanVc animated:YES];
    
    
}
@end
